<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
<style type="text/css">
	.emptable {
		background-color: gray;
	}
</style>
<script type="text/javascript" src="script/EMP1020P0.js" defer="defer"></script>
</head>
<body>
<form method="post">
		<table cellpadding="0" cellspacing="1" border="1" align="center">
		<tr class="emptable">
			<td colspan="6" align="center">사원정보
				<input type="hidden" name="employee_id" value="${employee_id }">
			</td>
		</tr>
		<tr>
			<td class="emptable">이름</td>
			<td width="25%"><input type="text" name="name" value="${viewBean.name }"></td>
			<td class="emptable">주민등록번호</td>
			<td width="20%">
				<input type="text" size="7" id="person_id1" value="${viewBean.person_id1 }" name="person_id1">
				-<input type="password" size="7" id="person_id2" value="${viewBean.person_id2 }" name="person_id2">
				<input type="hidden" name="person_id" id="person_id">
			</td>
			<td width="15%" class="emptable">소속부서</td>
			<td>
				<select name="dept_code">
						<option selected="selected"></option>
						<c:forEach var="i" items="${dept_code }">
							<option value="${i.code_detail }"
								<c:if test="${viewBean.dept_code == i.code_detail }">							
									selected="selected"
								</c:if>
							>${i.code_name }</option>
						</c:forEach>
				</select>
			</td>
		</tr>
		<tr>
			<td class="emptable">학력</td>	
			<td>
				<c:forEach var="i" items="${academic_code }">
					<input type="radio" value="${i.code_detail }" name="academic_code"
						<c:if test="${viewBean.academic_code == i.code_detail }">							
									checked="checked"
						</c:if>
					>${i.code_name }
				</c:forEach>
			</td>	
			<td class="emptable">기술</td>	
			<td colspan="3">
				<c:forEach var="i" items="${skill_code }">
					<input type="checkbox" value="${i.code_detail }" name="skill_code" 
						<c:forEach var="j" items="${viewBean.sk }">
							<c:if test="${j == i.code_detail }">							
								checked="checked"
							</c:if>
						</c:forEach>
					>${i.code_name }			
					
				</c:forEach>
			</td>
			
		</tr>
		<tr>
		
			<td class="emptable">졸업일</td>
			<td colspan="3">
				<select id="grad_stime_year" name="grad_stime_year">
					<option></option>
					<c:forEach var="i" begin="1990" end="2014">
						<option
							<c:if test="${viewBean.grad_stime_year == i }">							
								selected="selected"
							</c:if>
						>${i }</option>
					</c:forEach>				
				</select> 년
				<select id="grad_stime_month" name="grad_stime_month">
					<option></option>
					<option
						<c:if test="${viewBean.grad_stime_month == '01' }">							
								selected="selected"
						</c:if>
					>01</option>
					<option
						<c:if test="${viewBean.grad_stime_month == '02' }">							
								selected="selected"
						</c:if>
					>02</option>
					<option
						<c:if test="${viewBean.grad_stime_month == '03' }">							
								selected="selected"
						</c:if>
					>03</option>
					<option
						<c:if test="${viewBean.grad_stime_month == '04' }">							
								selected="selected"
						</c:if>
					>04</option>
					<option
						<c:if test="${viewBean.grad_stime_month == '05' }">							
								selected="selected"
						</c:if>
					>05</option>
					<option
						<c:if test="${viewBean.grad_stime_month == '06' }">							
								selected="selected"
						</c:if>
					>06</option>
					<option
						<c:if test="${viewBean.grad_stime_month == '07' }">							
								selected="selected"
						</c:if>
					>07</option>
					<option
						<c:if test="${viewBean.grad_stime_month == '08' }">							
								selected="selected"
						</c:if>
					>08</option>
					<option
						<c:if test="${viewBean.grad_stime_month == '09' }">							
								selected="selected"
						</c:if>
					>09</option>
					<option
						<c:if test="${viewBean.grad_stime_month == '10' }">							
								selected="selected"
						</c:if>
					>10</option>
					<option
						<c:if test="${viewBean.grad_stime_month == '11' }">							
								selected="selected"
						</c:if>
					>11</option>
					<option
						<c:if test="${viewBean.grad_stime_month == '12' }">							
								selected="selected"
						</c:if>
					>12</option>
					
				</select> 월	
				<select id="grad_stime_day" name="grad_stime_day">
					<option></option>
					<option
						<c:if test="${viewBean.grad_stime_day == '01' }">							
								selected="selected"
						</c:if>
					>01</option>
					<option
						<c:if test="${viewBean.grad_stime_day == '02' }">							
								selected="selected"
						</c:if>
					>02</option>
					<option
						<c:if test="${viewBean.grad_stime_day == '03' }">							
								selected="selected"
						</c:if>
					>03</option>
					<option
						<c:if test="${viewBean.grad_stime_day == '04' }">							
								selected="selected"
						</c:if>
					>04</option>
					<option
						<c:if test="${viewBean.grad_stime_day == '05' }">							
								selected="selected"
						</c:if>
					>05</option>
					<option
						<c:if test="${viewBean.grad_stime_day == '06' }">							
								selected="selected"
						</c:if>
					>06</option>
					<option
						<c:if test="${viewBean.grad_stime_day == '07' }">							
								selected="selected"
						</c:if>
					>07</option>
					<option
						<c:if test="${viewBean.grad_stime_day == '08' }">							
								selected="selected"
						</c:if>
					>08</option>
					<option
						<c:if test="${viewBean.grad_stime_day == '09' }">							
								selected="selected"
						</c:if>
					>09</option>
					<c:forEach var="i" begin="10" end="31">
						<option
							<c:if test="${viewBean.grad_stime_day == i }">							
								selected="selected"
							</c:if>
						>${i }</option>
					</c:forEach>
				</select> 일
				~		
				<select id="grad_etime_year" name="grad_etime_year">
					<option></option>
					<c:forEach var="i" begin="1990" end="2014">
						<option
							<c:if test="${viewBean.grad_etime_year == i }">							
								selected="selected"
							</c:if>
						>${i }</option>
					</c:forEach>				
				</select> 년
				<select id="grad_etime_month" name="grad_etime_month">
					<option></option>
					<option
						<c:if test="${viewBean.grad_etime_month == '01' }">							
								selected="selected"
						</c:if>
					>01</option>
					<option
						<c:if test="${viewBean.grad_etime_month == '02' }">							
								selected="selected"
						</c:if>
					>02</option>
					<option
						<c:if test="${viewBean.grad_etime_month == '03' }">							
								selected="selected"
						</c:if>
					>03</option>
					<option
						<c:if test="${viewBean.grad_etime_month == '04' }">							
								selected="selected"
						</c:if>
					>04</option>
					<option
						<c:if test="${viewBean.grad_etime_month == '05' }">							
								selected="selected"
						</c:if>
					>05</option>
					<option
						<c:if test="${viewBean.grad_etime_month == '06' }">							
								selected="selected"
						</c:if>
					>06</option>
					<option
						<c:if test="${viewBean.grad_etime_month == '07' }">							
								selected="selected"
						</c:if>
					>07</option>
					<option
						<c:if test="${viewBean.grad_etime_month == '08' }">							
								selected="selected"
						</c:if>
					>08</option>
					<option
						<c:if test="${viewBean.grad_etime_month == '09' }">							
								selected="selected"
						</c:if>
					>09</option>
					<option
						<c:if test="${viewBean.grad_etime_month == '10' }">							
								selected="selected"
						</c:if>
					>10</option>
					<option
						<c:if test="${viewBean.grad_etime_month == '11' }">							
								selected="selected"
						</c:if>
					>11</option>
					<option
						<c:if test="${viewBean.grad_etime_month == '12' }">							
								selected="selected"
						</c:if>
					>12</option>
					
				</select> 월	
				<select id="grad_etime_day" name="grad_etime_day">
					<option></option>
					<option
						<c:if test="${viewBean.grad_etime_day == '01' }">							
								selected="selected"
						</c:if>
					>01</option>
					<option
						<c:if test="${viewBean.grad_etime_day == '02' }">							
								selected="selected"
						</c:if>
					>02</option>
					<option
						<c:if test="${viewBean.grad_etime_day == '03' }">							
								selected="selected"
						</c:if>
					>03</option>
					<option
						<c:if test="${viewBean.grad_etime_day == '04' }">							
								selected="selected"
						</c:if>
					>04</option>
					<option
						<c:if test="${viewBean.grad_etime_day == '05' }">							
								selected="selected"
						</c:if>
					>05</option>
					<option
						<c:if test="${viewBean.grad_etime_day == '06' }">							
								selected="selected"
						</c:if>
					>06</option>
					<option
						<c:if test="${viewBean.grad_etime_day == '07' }">							
								selected="selected"
						</c:if>
					>07</option>
					<option
						<c:if test="${viewBean.grad_etime_day == '08' }">							
								selected="selected"
						</c:if>
					>08</option>
					<option
						<c:if test="${viewBean.grad_etime_day == '09' }">							
								selected="selected"
						</c:if>
					>09</option>
					<c:forEach var="i" begin="10" end="31">
						<option
							<c:if test="${viewBean.grad_etime_day == i }">							
								selected="selected"
							</c:if>
						>${i }</option>
					</c:forEach>
				</select> 일
				<input type="hidden" id="grad_sdate" name="grad_sdate">
				<input type="hidden" id="grad_edate" name="grad_edate">
			</td>
			<td class="emptable">기준급여</td>
			<td><input type="text" id="salary" name="salary" value="${viewBean.salary }"></td>
		</tr>
	</table>
	<table width="70%" align="center">
		<tr>
			<td align="center">
				<input type="button" value="수정" id="modifyEmp">
				<input type="button" value="삭제" id="deleteEmp">
			</td>
		</tr>
	</table>
</form>
${errMsg }${successMsg }
</body>
</html>